<?php
/**
 * 订单状态、类型控制器
 * @author swq
*/
namespace app\common\controller;
use app\BaseController;

class OrderStatus extends BaseController
{
	/**
	 * 订单状态
	 * @param
	 * @return array
	*/ 
	public static function getOrderStatus()
	{
		$statusarray = array(
			array(
				'status_id' => '0',
                'status_name' => '待支付',
			),

			array(
				'status_id' => '1',
                'status_name' => '已支付',
			),

			array(
				'status_id' => '2',
                'status_name' => '已接单',
			),

			array(
				'status_id' => '3',
                'status_name' => '已取货未付款',
			),

			array(
				'status_id' => '4',
                'status_name' => '已取货已付款',
			),

			array(
				'status_id' => '5',
                'status_name' => '已完成',
			),

			array(
				'status_id' => '6',
                'status_name' => '已取消',
			),

			array(
				'status_id' => '7',
                'status_name' => '维权中',
			),

			array(
				'status_id' => '8',
                'status_name' => '维权成功',
			),

			array(
				'status_id' => '9',
                'status_name' => '无人接单',
			),

			array(
				'status_id' => '10',
                'status_name' => '订单已关闭',
			),
		);
		return $statusarray;
	}

	/**
	 * 获取订单类型
	 * @param
	 * @return array
	*/
	public static function getOrderType()
	{
		$typearray = array(
			array(
				'type_id' => '1',
                'type_name' => '帮买',
			),

			array(
				'type_id' => '2',
                'type_name' => '帮送',
			),

			array(
				'type_id' => '3',
                'type_name' => '帮取',
			),

			array(
				'type_id' => '4',
                'type_name' => '帮办',
			),
		);
		return $typearray;
	}

	/**
	 * 获取申诉状态
	 * @param
	 * @return array
	*/
	public static function getOrderAppeal()
	{
		$appealstatus = array(
			array(
				'appealstatus_id' => '0',
                'appealstatus_name' => '审核中',
			),

			array(
				'appealstatus_id' => '1',
                'appealstatus_name' => '审核完成',
			),

			array(
				'appealstatus_id' => '2',
                'appealstatus_name' => '驳回审核',
			)
		);
		return $appealstatus;
	}
}